package cn.iocoder.yudao.module.project.controller.admin.order.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY;

@Schema(description = "管理后台 - 生产订单信息新增/修改 Request VO")
@Data
public class OrderSaveReqVO {

    @Schema(description = "订单编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "18406")
    private String id;

    @Schema(description = "订单日期", requiredMode = Schema.RequiredMode.REQUIRED)
    // @NotNull(message = "订单日期不能为空")
    private String dateStr;

    @Schema(description = "龙亿编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "龙亿编号不能为空")
    private String code;

    @Schema(description = "订单日期", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "订单日期不能为空")
    private LocalDateTime orderDate;

    @Schema(description = "订单总数量", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "订单总数量不能为空")
    private Long totalNum;

    @Schema(description = "到货点", requiredMode = Schema.RequiredMode.REQUIRED)
    // @NotEmpty(message = "到货点不能为空")
    private String arrivalPoint;

    @Schema(description = "出货方式", requiredMode = Schema.RequiredMode.REQUIRED)
    // @NotEmpty(message = "出货方式不能为空")
    private String deliveryMode;

    @Schema(description = "厂长", requiredMode = Schema.RequiredMode.REQUIRED)
    // @NotEmpty(message = "厂长不能为空")
    private String manager;

    @Schema(description = "开发业务", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    // @NotEmpty(message = "开发业务不能为空")
    private String businessName;

    @Schema(description = "业务", requiredMode = Schema.RequiredMode.REQUIRED)
    // @NotEmpty(message = "业务不能为空")
    private String operator;

    @Schema(description = "备注", requiredMode = Schema.RequiredMode.REQUIRED, example = "你猜")
    // @NotEmpty(message = "备注不能为空")
    private String remark;

    @Schema(description = "订单状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    // @NotEmpty(message = "订单状态不能为空")
    private String status;

    @Schema(description = "出货日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    private LocalDateTime shippingDate;

    @Schema(description = "客户名称")
    private String customerName;

}